//
//  NSArray+FCExtension.m
//  AFNetworking
//
//  Created by WJC on 2020/2/29.
//

#import "NSArray+FCExtension.h"

@implementation NSArray (FCExtension)
+ (NSArray *)changeStr2ArrWithArr:(NSString *)str :(NSString *)partStr{
    NSArray  *stringArray = [str componentsSeparatedByString:partStr];
    return stringArray;
}

/// 去掉数据一样的数据
/// @param array
+ (NSArray *)removeRepeatWithContainObjFunc:(NSArray *)array {
    NSMutableArray *listArray = [NSMutableArray array];
    
    for (id str in array) {
        if (![listArray containsObject:str]) {
            [listArray addObject:str];
        }
    }
    return listArray;
}
@end
